package com.han.gift.entity;


import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * (Employee)表实体类
 *
 * @author makejava
 * @since 2023-02-25 00:44:39
 */
@SuppressWarnings("serial")
@TableName("t_employee")
public class Employee extends Model<Employee> {


    @TableField("id")
    private Long id;

    //员工用户名
    @TableField("username")
    @NotBlank(message = "管理员用户名不能为空!")
    private String username;

    //密码
    @TableField("password")
    @NotBlank(message = "管理员密码不能为空!")
    private String password;

    //姓名
    @TableField("real_name")
    private String realName;

    //电话
    @TableField("tel")
    @NotBlank(message = "管理员电话不能为空!")
    private String tel;

    //邮箱
    @TableField("email")
    @NotBlank(message = "管理员邮箱不能为空!")
    private String email;

    //创建时间
    @TableField("input_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date inputTime;

    //状态：0正常，1锁定，2注销
    @TableField("state")
    private Integer state;

    //部门id
    @TableField("dept_id")
    private Long deptId;

    //所属租户
    @TableField("tenant_id")
    private Long tenantId;

    //员工类型 ， 1平台普通员工 ，2平台客服人员，3平台管理员，4机构员工，5,机构管理员或其他
    @TableField("type")
    private Integer type;


    @TableField("salt")
    private String salt;


    @TableField("login_id")
    private Long loginId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getInputTime() {
        return inputTime;
    }

    public void setInputTime(Date inputTime) {
        this.inputTime = inputTime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getTenantId() {
        return tenantId;
    }

    public void setTenantId(Long tenantId) {
        this.tenantId = tenantId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public Long getLoginId() {
        return loginId;
    }

    public void setLoginId(Long loginId) {
        this.loginId = loginId;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */

    }

